package com.zline.foodraise.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by heshantao on 15/7/22.
 * 标签
 */
public class TagBean implements Parcelable {
    //标签内容
    String content;
    //标签Id
    long tagId;

    public TagBean() {
    }

    public TagBean(String content, long tagId) {
        this.content = content;
        this.tagId = tagId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTagId() {
        return tagId;
    }

    public void setTagId(long tagId) {
        this.tagId = tagId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.content);
        dest.writeLong(this.tagId);
    }

    protected TagBean(Parcel in) {
        this.content = in.readString();
        this.tagId = in.readLong();
    }

    public static final Parcelable.Creator<TagBean> CREATOR = new Parcelable.Creator<TagBean>() {
        public TagBean createFromParcel(Parcel source) {
            return new TagBean(source);
        }

        public TagBean[] newArray(int size) {
            return new TagBean[size];
        }
    };
}
